package com.ljc.cjgl.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ljc.cjgl.entitiy.Course;
import com.ljc.cjgl.entitiy.Experence;
@Repository
public interface ExperenceRepository extends JpaRepository<Experence, Integer>, JpaSpecificationExecutor<Experence> {
	@Query(value="select distinct t.course from Experence t")
	public List<Course> findDestinstCourse();

	public List<Experence> findByCourseId(Integer id);

}
